package com.yuyou.activity.group.service.vo.req;

import io.swagger.annotations.ApiModelProperty;

import java.util.Set;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;


public class ReqActivityGroupSPSubOrder extends ReqActivityGroupSPBase{

    @ApiModelProperty(value = "活动ID（开团为空，参团则该活动ID）", required = false)	
	private Long activityGroupbuyId;
	
    @NotNull(message="团购类型")
    @ApiModelProperty(value = "团购类型：0：单人买，1：团购", required = true)	
    private Integer groupType;
    
    @NotBlank(message="地址不能为空")
    @ApiModelProperty(value = "支付成功跳转地址", required = true)
	private String paySuccUrl;
    
    @NotBlank(message="姓名不能为空")
    @Length(max = 20 , message = "姓名不能超过20个字")
    @ApiModelProperty(value = "姓名", required = true)
	private String name;
    
    @NotBlank(message="手机号不能为空")
    @Length(max = 11 , message = "手机号码不能超过11个字")
    @ApiModelProperty(value = "手机号", required = true)
	private String phone;
    
    @NotBlank(message="渠道不能为空")
    @Length(max = 200 , message = "渠道不能超过200个字")
    @ApiModelProperty(value = "手机号", required = true)
	private String channel;
    
    @NotEmpty(message="商品不能为空")
    @ApiModelProperty(value = "商品", required = true)
	private Set<Long> activityGroupbuyGoodsIds;

    
    
    
	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}



	public Set<Long> getActivityGroupbuyGoodsIds() {
		return activityGroupbuyGoodsIds;
	}

	public void setActivityGroupbuyGoodsIds(Set<Long> activityGroupbuyGoodsIds) {
		this.activityGroupbuyGoodsIds = activityGroupbuyGoodsIds;
	}

	public Long getActivityGroupbuyId() {
		return activityGroupbuyId;
	}

	public void setActivityGroupbuyId(Long activityGroupbuyId) {
		this.activityGroupbuyId = activityGroupbuyId;
	}

	public Integer getGroupType() {
		return groupType;
	}

	public void setGroupType(Integer groupType) {
		this.groupType = groupType;
	}

	public String getPaySuccUrl() {
		return paySuccUrl;
	}

	public void setPaySuccUrl(String paySuccUrl) {
		this.paySuccUrl = paySuccUrl;
	}
    
    
    
    
}
